import ApiClient from '@/api/apiClient';

import type { RequestBody } from 'alova';

/**
 * @description 文件上传
 */
export const commonUploadApi = (data: RequestBody) => {
  return ApiClient.Post('/file/upload', data, {
    meta: { auth: true },
  });
};

/**
 * @description 文件上传 IOT
 */
export const commonUploadIotApi = (data: RequestBody) => {
  return ApiClient.Post('/file/upload', data, {
    meta: { auth: true },
  });
};
